package com.lehecai.ucenter.constant;

/**
 * Created with IntelliJ IDEA.
 * User: qatang
 * Date: 13-10-14
 * Time: 11:51
 * To change this template use File | Settings | File Templates.
 */
public enum AuthenticateStatus {
    AUTHENTICATE_STATUS_SUCCESS(0, "authenticate success"),
    AUTHENTICATE_STATUS_FAILURE(1, "authenticate failed"),
    AUTHENTICATE_STATUS_FAILURE_USERNAME_NOT_NULL(2, "username must be not null"),
    AUTHENTICATE_STATUS_FAILURE_PASSWORD_NOT_NULL(3, "password must be not null"),
    AUTHENTICATE_STATUS_FAILURE_PASSWORD_USED(4, "one-time password has been used"),
    AUTHENTICATE_STATUS_FAILURE_APP_NOT_NULL(5, "app must be not null");

    private int code;
    private String message;

    private AuthenticateStatus(int code, String message){
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
